﻿@{
    ViewBag.Title = "View";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@model handvn.Models.DetailCategoriesView          
<div id="tl_left_sidebar"> 
    <div class="tl_left_sidebar_box">     
    <div class="tl_left_sidebar_title">
      Chi tiết danh mục
    </div>
    <div class="tl_category">
        <ul >
            @foreach (var item in Model.DetailCategory)
            {
                <li>
                 @Html.ActionLink(item.TenChiTietDanhMuc, "../product/view", new { decaid= item.DetailCategoriesID })
                </li>
            }           
        </ul>
         <br />
    </div>
    </div>
</div><!-- End left-->
<div id="tl_right_sidebar">
    <div class="tl_title_home">Sản phẩm theo danh mục</div>
    @foreach (var item in Model.Product)
    {  
        <div class="tl_item">
            <a href="../product/viewdetail?prod=@item.ProductID"><img class="tl_item_img" src="../../Images/HinhAnh/@item.HinhAnh" alt="../../Images/HinhAnh/@item.HinhAnh"/></a>
            <a  class="tl_item_title" href="../product/view?decaid=@item.DetailCategoriesID">@item.DetailCategories.TenChiTietDanhMuc</a>
               @* @Html.ActionLink(item.TenSanPham, "../DetailProduct/View", new { ProductID = item.ProductID })*@
            <a  class="tl_item_user" href="../user/view?user=@item.UserID">@item.User.TenKhachhang</a>  
            <div class="tl_item_rice">@item.GiaSanPham vnd</div>
        </div>       
    }
    <br/>      
</div><!-- End Right-->